home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / __MANDEL / MANDELBR / CMANDELL.C < prev    next >
Text File  |  1992-03-25  |  612b  |  22 lines

  1. //    CMandelLinePhase.c
  2.  
  3. #include "CMandelLinePhase.h"
  4.  
  5. void
  6. CMandelLinePhase::IMandelLinePhase(CMandelDoc *theDoc, CMandelPhase *theParentPhase,
  7.     short theH, short theV, short theLength)
  8. {
  9.     CMandelPhase::IMandelPhase(theDoc, theParentPhase);
  10.     
  11.     itsScale    = theDoc->itsScale;
  12.     itsHStart    = theDoc->itsHStart + (double)theH * itsScale;
  13.     itsVStart    = theDoc->itsVStart - (double)theV * itsScale;
  14.     itsMaxDwell    = theDoc->itsMaxDwell;
  15.     itsDwellsH    = theDoc->itsDwellsH;
  16.     itsRowSize    = (long)theDoc->itsWidth * sizeof(TDwell);
  17.     
  18.     itsLength    = theLength;
  19.     itsIndex    = ((long)theV * theDoc->itsWidth + theH) * sizeof(TDwell);
  20. }
  21.  
  22.